package com.zbkj.client.response;

import java.io.Serializable;

/**
 * WebSocket统一返回类
 */
public class WebsocketResponse<T> implements Serializable {
    private String event;
    private T data;

    public WebsocketResponse() {}

    public WebsocketResponse(String event, T data) {
        this.event = event;
        this.data = data;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
} 